package model

import (
	"fmt"
	"gorm.io/gorm"
)

var DB *gorm.DB

type Student struct {
	Name   string
	Age    int
	Scores int
}
type Person struct {
	Name  string
	Age   int
	Id    int
	Level int
}
type Pupil struct {
	Student
}
type AAA struct {
	*Student
}

func (p *Student) SetScores(score int) {
	fmt.Println(p.Name, p.Age)
}
func (p *Student) GetAll() string {
	return "all"
}
func (p *Pupil) Testing() {
	fmt.Println(p.Name, p.Age)
}
